import request from '@/utils/request'

export function permissionList (parameter) {
  return request({
    url: '/boss/system/pms/listAll',
    method: 'get',
    params: parameter
  })
}
export function addPermission (parameter) {
  return request({
    url: '/boss/system/pms/add',
    method: 'post',
    data: parameter
  })
}
export function updatePermission (parameter) {
  return request({
    url: '/boss/system/pms/update',
    method: 'post',
    data: parameter
  })
}
export function removePermission (parameter) {
  return request({
    url: '/boss/system/pms/delete',
    method: 'post',
    data: parameter
  })
}
export function permissionListByPro (parameter) {
  return request({
    url: '/boss/pro/pms/listAll',
    method: 'get',
    params: parameter
  })
}
export function addPermissionByPro (parameter) {
  return request({
    url: '/boss/pro/pms/add',
    method: 'post',
    data: parameter
  })
}
export function updatePermissionByPro (parameter) {
  return request({
    url: '/boss/pro/pms/update',
    method: 'post',
    data: parameter
  })
}
export function removePermissionByPro (parameter) {
  return request({
    url: '/boss/pro/pms/delete',
    method: 'post',
    data: parameter
  })
}
